const accountInfo = wx.getAccountInfoSync()
const {
  miniProgram
} = accountInfo
const {
  envVersion
} = miniProgram
const env = {
  baseURL: ''
}

switch (envVersion) {
  case 'develop':
    env.baseURL='http://localhost:8070'
    // env.baseURL = 'http://172.20.10.3:8070'
    // env.baseURL = 'https://wuyu.love'
    break;
  case 'prod':
    env.baseURL = 'https://wuyu.love'
    // env.baseURL = 'http://172.20.10.3:8070'  
    break;
  default:
    env.baseURL = 'https://wuyu.love'
    // env.baseURL = 'http://172.20.10.3:8070'
}

export {
  env
}